-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support to build and run UI only apps. #80
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sandeep-paliwal I've added a few comments 🙂
scripts/deploy.actions.js
Outdated
@@ -39,52 +39,54 @@ class DeployActions extends BaseScript { | |||
* @memberof DeployActions | |||
*/ | |||
async run (args = [], deployConfig = {}) { | |||
const taskName = 'Deploy actions' | |||
this.emit('start', taskName) | |||
if (this.config.app.hasBackend) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment here do like https://github.com/adobe/aio-app-scripts/blob/master/scripts/deploy.ui.js#L29
@@ -127,10 +127,10 @@ class ActionServer extends BaseScript { | |||
if (hasFrontend) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also if not hasBackend we don't want to build & deploy actions + don't need to start the openwhisk server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sandeep-paliwal almost LGTM, just let's make sure that we do not start the openwhisk server
I would replace the
if (local) {
... runs openwhisk local jar ...
}
if (backend){
...
}
if (frontend) {
...
}
with
if (backend) {
if (local) {
.. runs local ow ..
}
...
}
if (frontend) {
...
}
this has failing tests, and now merge conflicts also. |
@purplecabbage I will update the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sandeep-paliwal two comments on top:
- undeploy actions is missing the hasBackend check, so it fails with an ugly message
aio app run
showsℹ using remote actions
even if there are no actions
Fixed error for underloy cmd.
Aio commands used to error out when UI only apps were run.
Made sure all action dependencies for their build and deploy only are called if manifest file is present.
Description
Related Issue
Motivation and Context
How Has This Been Tested?
create UI only app from CLI. Try out aio app run command.
Screenshots (if appropriate):
Types of changes
Checklist: